package com.baitai.system.domain;

import com.baitai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baitai.common.annotation.Excel;

/**
 * 积分明细对象 user_points_log
 * 
 * @author xx
 * @date 2024-07-21
 */
public class UserPointsLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;
    /** 变动类型 */
    @Excel(name = "变动类型")
    private String changeType;

    /** 变动积分 */
    @Excel(name = "变动积分")
    private String pointsChange;

    /** 变动前积分 */
    @Excel(name = "变动前积分")
    private String beforePoints;

    /** 变动后积分 */
    @Excel(name = "变动后积分")
    private String afterPoints;

    /** 积分来源 */
    @Excel(name = "积分来源")
    private String actionType;

    /** 来源描述 */
    @Excel(name = "来源描述")
    private String actionDetail;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPointsChange(String pointsChange) 
    {
        this.pointsChange = pointsChange;
    }

    public String getPointsChange() 
    {
        return pointsChange;
    }
    public void setBeforePoints(String beforePoints) 
    {
        this.beforePoints = beforePoints;
    }

    public String getBeforePoints() 
    {
        return beforePoints;
    }
    public void setAfterPoints(String afterPoints) 
    {
        this.afterPoints = afterPoints;
    }

    public String getAfterPoints() 
    {
        return afterPoints;
    }
    public void setActionType(String actionType) 
    {
        this.actionType = actionType;
    }

    public String getActionType() 
    {
        return actionType;
    }
    public void setActionDetail(String actionDetail) 
    {
        this.actionDetail = actionDetail;
    }

    public String getActionDetail() 
    {
        return actionDetail;
    }

    public String getChangeType() {
        return changeType;
    }

    public void setChangeType(String changeType) {
        this.changeType = changeType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("pointsChange", getPointsChange())
            .append("beforePoints", getBeforePoints())
            .append("afterPoints", getAfterPoints())
            .append("actionType", getActionType())
            .append("actionDetail", getActionDetail())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
